package com.heima.kafka.pojo;

import org.springframework.stereotype.Component;

/**
 * @program: heima-leadnews
 * @description:
 * @author: ryp
 * @create: 2023-05-03 16:27
 **/
@Component
public class User {
    private String username;
    private Integer age;

    public User() {
    }

    public User(String username, Integer age) {
        this.username = username;
        this.age = age;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
